package day07;

public class txt3 {
    static int max(int...b){
        int max=0;
        for (int i : b) {
            if(max<i){
                max=i;
            }

        }
        return max;
    }

    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,20,7,8,9,10};
        int c=max(arr);
        System.out.println(c);

    }
}
